import axios from "@/api/request"

const user = {
    add: "/back/user/add",
    update: "/back/user/update",
    delete: "/back/user/delete",
    findById: "/back/user/findById",
    findAll: '/back/user/findAll',
    search: "/back/user/search",
    updateStatus: "/back/user/updateStatus",
    searchByClubId: "/back/user/searchByClubId",
}
const api = {
    user_add(params) {
        return axios.post(user.add, params)
    },
    user_update(params) {
        return axios.post(user.update, params)
    },
    user_updateStatus(params) {
        return axios.post(user.updateStatus, params)
    },
    user_delete(params) {
        return axios.delete(user.delete, {params})
    },
    user_findById(params) {
        return axios.get(user.findById, {params})
    },
    user_findAll(params) {
        return axios.get(user.findAll, {params})
    },
    user_search(params) {
        return axios.get(user.search, {params})
    },
    user_searchByClubId(params) {
        return axios.get(user.searchByClubId, {params})
    },

}

export default api
